<html>
<body>
<p>Reports <code>object</code> that can be converted to <code>data object</code></p>
<p><code>data object</code> auto-generates <code>toString</code>, <code>equals</code> and <code>hashCode</code></p>
<p>The inspection suggests to convert <code>object</code> to <code>data object</code> in 2 cases:</p>
<ul>
    <li>When custom <code>toString</code> returns name of the class</li>
    <li>When <code>object</code> inherits sealed <code>class</code>/<code>interface</code></li>
</ul>
<p><b>Example:</b></p>
<pre><code>
    object Foo {
        override fun toString(): String = "Foo"
    }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
    data object Foo
</code></pre>
<!-- tooltip end -->
<p>This inspection only reports if the Kotlin language level of the project or module is 1.9 or higher</p>
</body>
</html>